package com.financial.business.balance.connector;

import com.financial.business.balance.utils.apiresult.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author WANGNING
 * @date 2019/11/4
 * @email wyn20140226@aliyun.com
 * @des 银盛服务feign
 */
@Service
@FeignClient(name = "financial-service-yspay")
public interface YsServiceFeign {

    /**
     * 银盛报备
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ys/report", method = RequestMethod.POST)
    ApiResult ysReport(@RequestBody String requestParam);

    /**
     * 银盛支付
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ys/pay", method = RequestMethod.POST)
    ApiResult ysPay(@RequestBody String requestParam);

    /**
     * 银盛分账
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ys/split", method = RequestMethod.POST)
    ApiResult ysSplit(@RequestBody String requestParam);

    /**
     * 银盛退款
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ys/refund", method = RequestMethod.POST)
    ApiResult refund(@RequestBody String requestParam);

    /**
     * 银盛提现
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ys/withdrawal", method = RequestMethod.POST)
    ApiResult withdrawal(@RequestBody String requestParam);

    /**
     * 银盛代付/转账
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ys/payment", method = RequestMethod.POST)
    ApiResult payment(@RequestBody String requestParam);

    /**
     * 银盛查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ysQuery/payment", method = RequestMethod.POST)
    ApiResult refundQuery(@RequestBody String requestParam);
}
